package com.ruoyi.academic.service.impl;

import java.util.List;

import com.ruoyi.academic.domain.StuVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.academic.mapper.StudentAcademicInfoMapper;
import com.ruoyi.academic.domain.StudentAcademicInfo;
import com.ruoyi.academic.service.IStudentAcademicInfoService;

/**
 * 学生学业信息Service业务层处理
 *
 * @author dongyv
 * @date 2025-05-15
 */
@Service
public class StudentAcademicInfoServiceImpl implements IStudentAcademicInfoService
{
    @Autowired
    private StudentAcademicInfoMapper studentAcademicInfoMapper;

    /**
     * 查询学生学业信息
     *
     * @param serialNumber 学生学业信息主键
     * @return 学生学业信息
     */
    @Override
    public StudentAcademicInfo selectStudentAcademicInfoBySerialNumber(Long serialNumber)
    {
        return studentAcademicInfoMapper.selectStudentAcademicInfoBySerialNumber(serialNumber);
    }

    /**
     * 查询学生学业信息列表
     *
     * @param studentAcademicInfo 学生学业信息
     * @return 学生学业信息
     */
    @Override
    public List<StudentAcademicInfo> selectStudentAcademicInfoList(StudentAcademicInfo studentAcademicInfo)
    {
        return studentAcademicInfoMapper.selectStudentAcademicInfoList(studentAcademicInfo);
    }

    /**
     * 新增学生学业信息
     *
     * @param studentAcademicInfo 学生学业信息
     * @return 结果
     */
    @Override
    public int insertStudentAcademicInfo(StudentAcademicInfo studentAcademicInfo)
    {
        return studentAcademicInfoMapper.insertStudentAcademicInfo(studentAcademicInfo);
    }

    /**
     * 修改学生学业信息
     *
     * @param studentAcademicInfo 学生学业信息
     * @return 结果
     */
    @Override
    public int updateStudentAcademicInfo(StudentAcademicInfo studentAcademicInfo)
    {
        return studentAcademicInfoMapper.updateStudentAcademicInfo(studentAcademicInfo);
    }

    /**
     * 批量删除学生学业信息
     *
     * @param serialNumbers 需要删除的学生学业信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentAcademicInfoBySerialNumbers(Long[] serialNumbers)
    {
        return studentAcademicInfoMapper.deleteStudentAcademicInfoBySerialNumbers(serialNumbers);
    }

    /**
     * 删除学生学业信息信息
     *
     * @param serialNumber 学生学业信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentAcademicInfoBySerialNumber(Long serialNumber)
    {
        return studentAcademicInfoMapper.deleteStudentAcademicInfoBySerialNumber(serialNumber);
    }

    @Override
    public List<StudentAcademicInfo> selectStudentAcademicInfoList_student(String teacherId) {
        return studentAcademicInfoMapper.selectStudentAcademicInfoList_student(teacherId);
    }


    @Override
    public List<StuVO> selectByStudentId(String studentId) {
        return studentAcademicInfoMapper.selectByStudentId(studentId);
    }
}
